<!DOCTYPE html>
<script src="../../resources/ahem.js"></script>
<style>
body {
  font: 20px/1 Ahem;
  line-height: 100px;
}
img {
  width: 40px;
  height: 30px;
}
</style>
<!-- Test selection painting on replaced elements -->
<div>foo<img /><img /><br /><img /></div><br />
<div style="writing-mode:vertical-lr">foo<img /><img /><br /><img /></div><br />
<div style="writing-mode:vertical-rl">foo<img /><img /><br /><img /></div><br />
<script>
  document.execCommand("SelectAll");
</script>